package net.tngou.action;

import java.io.IOException;
import java.util.UUID;

import javax.servlet.ServletException;

import net.tngou.pojo.Item;
import net.tngou.pojo.Result;
import net.tngou.util.DigestMD;


public class ResultAction extends BaseAction {

	@Override
	public void execute() throws ServletException, IOException {
		

		Result result =(Result) session.getAttribute("result_"+ask.getId());
		 if(result==null)
		 {
			 result = new Result().get(ask.getId());
			 session.setAttribute("result_"+ask.getId(), result);

		 }
		 if(result==null)
		 {
			run_404();
			return;
		 }
	
		 root.put("result", result);
		 root.put("title", result.getTitle()+"-"+"第五届最美“十大金牛好人”");    
		 root.put("keywords", "最美“十大金牛好人” ");
		 root.put("description", "第五届最美“十大金牛好人” 评选活动"+result.getTitle());
		 printFreemarker("default/result.ftl", root);
		 
		 
		 
	}
	
	 
}
